package com.jdd.modules.parking.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jdd.common.util.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Description: 车场出入口配置
 * @Author: jdd
 * @Date: 2021-02-15
 * @Version: V1.0
 */
@Data
@TableName("park_arm_info")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "park_arm_info对象", description = "车场出入口配置")
public class ParkArmInfo {

    /**
     * id
     */
    @TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "id")
    private String id;
    /**
     * 停车场编码
     */
    @Excel(name = "停车场编码", width = 15)
    @ApiModelProperty(value = "停车场编码")
    private String parkCode;
    /**
     * 停车场名称
     */
    @Excel(name = "停车场名称", width = 15)
    @ApiModelProperty(value = "停车场名称")
    private String parkName;
    /**
     * 停车场出口名称
     */
    @Excel(name = "停车场出口名称", width = 15)
    @ApiModelProperty(value = "停车场出口名称")
    private String armName;
    /**
     * ip地址
     */
    @Excel(name = "ip地址", width = 15)
    @ApiModelProperty(value = "ip地址")
    private String ipAddr;
    /**
     * 设备序列号
     */
    @Excel(name = "设备序列号", width = 15)
    @ApiModelProperty(value = "设备序列号")
    @NotNull(message = "序列号不能为空")
    private String serialNo;
    /**
     * 停车场出口编号状态，1正常，2禁止
     */
    @Excel(name = "停车场出口编号状态，1正常，2禁止", width = 15)
    @ApiModelProperty(value = "停车场出口编号状态，1正常，2禁止")
    private String armStatus;
    /**
     * 源区域Id
     */
    @Excel(name = "源区域Id", width = 15)
    @ApiModelProperty(value = "源区域Id")
    private String sourceAreaId;
    /**
     * 目标区域Id
     */
    @Excel(name = "目标区域Id", width = 15)
    @ApiModelProperty(value = "目标区域Id")
    private String targetAreaId;
    /**
     * 0、进口, 1、出口
     */
    @Excel(name = "0、进口, 1、出口", width = 15)
    @ApiModelProperty(value = "0、进口, 1、出口")
    private String armType;
    /**
     * 创建时间
     */
    @Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 更新日期
     */
    @Excel(name = "更新日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**
     * 创建人
     */
    @Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
    private String createUser;
    /**
     * rtsp_url地址
     */
    @Excel(name = "rtsp_url地址", width = 15)
    @ApiModelProperty(value = "rtsp_url地址")
    private String rtspUrl;
    /**
     * 视频流url地址
     */
    @Excel(name = "视频流url地址", width = 15)
    @ApiModelProperty(value = "视频流url地址")
    private String videoUrl;
    /**
     * 图片url地址
     */
    @Excel(name = "图片url地址", width = 15)
    @ApiModelProperty(value = "图片url地址")
    private String imageUrl;
    /**
     * 出入口二维码url地址
     */
    @Excel(name = "出入口二维码url地址", width = 15)
    @ApiModelProperty(value = "出入口二维码url地址")
    private String armQrcodeUr;
    /**
     * 工作站id
     */
    @Excel(name = "工作站id", width = 15)
    @ApiModelProperty(value = "工作站id")
    private String workStationId;
    /**
     * 工作站名称
     */
    @Excel(name = "工作站名称", width = 15)
    @ApiModelProperty(value = "工作站名称")
    private String workStationName;
    /**
     * 使用着id,用来区分到底是谁在使用这台相机的监控视频
     */
    @Excel(name = "使用人ID", width = 15)
    @ApiModelProperty(value = "使用人ID")
    private String usedUserId;
}
